<%@page import="utilities.Uporabnik"%>
<%  
	// potrebno za odjavo
  	response.setHeader("Cache-Control", "no-cache");  
  	response.setHeader("Pragma", "no-cache");  
  	response.setDateHeader("max-age", 0);  
  	response.setDateHeader("Expires", 0);  
%>

<div id="upVrstica">
	<div>
	<span class="upVrsticaLevo">	
	<%
	if (session.getAttribute("uporabnik") == null) {
		if (session.getAttribute("stran") != "_prijava" || session.getAttribute("stran") != "_registracija") { 
			response.sendRedirect("prijava.jsp");
		}
	} else {
		Uporabnik uporabnik = (Uporabnik)session.getAttribute("uporabnik");
		out.print("<p>Pozdravljen <b>" + uporabnik.getIme() + " " + uporabnik.getPriimek() + "</b> (" + uporabnik.getEmail() + ")!</p>");
	 %>
	 </span>
	 </div>
	 <div class="clear"></div>
	 <div>
	 <span class="upVrsticaDesno">
	<form method="post" action="urejanjeProfilaInitServlet" style="padding: 0;  float:left;">	
		<input type="submit" name="urejanje" value="Urejanje" />
		
	</form>
	<form method="post" action="odjavaServlet" style="padding: 0; float:left;">
		<input type="submit" name="odjava" value="Odjava" />
	</form>
	</span>
	<%
	}
	 %>
	 </div>
</div>
<div class="clear"></div>